<?php

class BaseController {

	protected $display;

	protected $view;
	
	public function __construct() {
		if (empty($this->view)) {
			$this->view = new View;
		}
	}

	protected function post($post) {
		$post = trim($_POST[$post]);

		return $post;
	}

	protected function get($get) {
		$get = trim($_GET[$get]);

		return $get;
	}

	protected function param($param) {
		$params =$this->get('p');
	}
}